package com.jl.smartcard.core;

import java.net.URL;

import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.Platform;
import org.osgi.framework.Bundle;


public class PathUtil {

	public static String getPath(String name){
		Bundle bundle = Platform.getBundle(ActivatorCore.PLUGIN_ID);
		URL url = bundle.getEntry(name);
		try {
			url = FileLocator.toFileURL(url);
		} catch (Exception e) {
			
		}
		return url.getPath();
	}
}
